<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"	 %>
    <% %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理员登录</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 100px;
            width: 100%;
            height: 100%;
            background-image: url(image/1.avif);
            background-repeat: no-repeat;
            background-size: 100% 100%;
            margin: 0;
            background-size: cover;
        }
        
        .login-container {
            width: 100%;
            max-width: 400px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            animation: fadeIn 0.6s ease-out;
        }
        
        .login-header {
            background: linear-gradient(to right, #4b6cb7, #182848);
            color: white;
            padding: 25px 30px;
            text-align: center;
        }
        
        .login-header h2 {
            font-size: 28px;
            font-weight: 600;
            letter-spacing: 1px;
        }
        
       /*  .login-header p {
            margin-top: 8px;
            opacity: 0.8;
            font-size: 15px;
        } */
        
        .login-form {
            padding: 30px;
        }
        
        .input-group {
            margin-bottom: 22px;
            position: relative;
        }
        
        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
            font-size: 15px;
        }
        
        .input-group input {
            width: 100%;
            padding: 14px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s ease;
            outline: none;
            background: #f9f9f9;
        }
        
        .input-group input:focus {
            border-color: #4b6cb7;
            background: white;
            box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.2);
        }
        
        .input-group input:hover {
            border-color: #b1b1b1;
        }
        
        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            margin-bottom: 25px;
        }
        
        .remember-me {
            display: flex;
            align-items: center;
        }
        
        .remember-me input {
            margin-right: 8px;
        }
        
        .forgot-password {
            color: #4b6cb7;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .forgot-password:hover {
            color: #182848;
            text-decoration: underline;
        }
        
        .login-button {
            width: 100%;
            padding: 14px;
            background: linear-gradient(to right, #4b6cb7, #182848);
            border: none;
            border-radius: 10px;
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 1px;
        }
        
        .login-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(24, 40, 72, 0.4);
        }
        
        .login-button:active {
            transform: translateY(0);
        }
        
        .copyright {
            text-align: center;
            margin-top: 25px;
            color: #777;
            font-size: 13px;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @media (max-width: 480px) {
            .login-container {
                max-width: 100%;
            }
            
            .login-header {
                padding: 20px;
            }
            
            .login-form {
                padding: 25px 20px;
            }
            
            .remember-forgot {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .forgot-password {
                margin-top: 10px;
            }
        }
    </style>
</head>
<body>
    <div class="login-container">
        <div class="login-header">
            <h2>乐购商城管理员登录</h2>
            <!-- <p>请输入您的凭据以访问控制面板</p > -->
        </div>
        
        <form class="login-form" action="/lego/adminLogin.do" method="post">
            <div class="input-group">
                <label for="username">用户名</label>
                <input type="text" name="adminName" placeholder="输入管理员用户名" required  id="adminName">
            </div>
            
            <div class="input-group">
                <label for="password">密码</label>
                <input type="password" name="adminPwd" placeholder="输入您的密码" required >
            </div>
            
            <button type="submit" class="login-button">登 录</button>
            
            <div class="copyright">
                &copy; 2023 系统管理控制台 | 仅限授权人员访问
            </div>
        </form>
    </div>
</body>

</html>